package com.kmair.caiwu.financialexpress.service.impl;

import com.kmair.caiwu.financialexpress.dao.SubjectParameterMapper;
import com.kmair.caiwu.financialexpress.pojo.SubjectParameter;
import com.kmair.caiwu.financialexpress.service.DataOperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubjectParameterService implements DataOperationService {
    final SubjectParameterMapper dao;

    @Autowired
    public SubjectParameterService(SubjectParameterMapper dao) {
        this.dao = dao;
    }

    @Override
    public int deleteByPrimaryKey(Integer tId) {
        return dao.deleteByPrimaryKey(tId);
    }

    @Override
    public int insert(Object record) {
        return dao.insert((SubjectParameter) record);
    }

    @Override
    public int insertSelective(Object record) {
        return dao.insertSelective((SubjectParameter) record);
    }

    @Override
    public SubjectParameter selectByPrimaryKey(Integer tId) {
        return dao.selectByPrimaryKey(tId);
    }

    @Override
    public int updateByPrimaryKeySelective(Object record) {
        return dao.updateByPrimaryKeySelective((SubjectParameter) record);
    }

    @Override
    public int updateByPrimaryKey(Object record) {
        return dao.updateByPrimaryKey((SubjectParameter) record);
    }

    @Override
    public List selectSelective(Object entity) {
        return null;
    }
}
